package com.example.lhh.user.service.impl;

import com.example.lhh.user.entity.LhhRole;
import com.example.lhh.user.mapper.LhhRoleMapper;
import com.example.lhh.user.service.ILhhRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author luoHongHu
 * @since 2025-03-25
 */
@Service
public class LhhRoleServiceImpl extends ServiceImpl<LhhRoleMapper, LhhRole> implements ILhhRoleService {

    @Resource
    private LhhRoleMapper roleMapper;

    /**
     * 通过角色ID获取拥有的权限
     * @param roleId
     * @return
     */
    @Override
    public LhhRole getAuthorityByRoleId(String roleId) {
        return roleMapper.getAuthorityByRoleId(roleId);
    }
}
